@extends('layouts.app')

@section('content')
    <div class="legal-services-page">
        <div class="policy-service-banner">
            <img src="{{ asset('images/legal-services/banner.png') }}" alt="">
        </div>

        <div class="policy-service-content">
            <div class="policy-service-actions">
                <div class="policy-service-type-list">
                    <span>
                        <a href="{{ route('legal.index') }}" class="policy-service-type-item">案例展示</a>
                        <a href="/legal/lawyer" class="policy-service-type-item item-active">律师咨询服务</a>
                    </span>
                </div>
            </div>

            <div class="policy-service-list">
                <div>
                    @foreach ($lawyers as $lawyer)
                    <div class="lawyer-item">
                        <img src="{{ $lawyer['avatar'] }}" alt="" class="avatar flex-shrink-0">
                        <div class="lawyer-info">
                            <p class="lawyer-name">{{ $lawyer['name'] }}律师</p>
                            <p>{{ $lawyer['description'] }}</p>
                            <div class="text-sm text-gray-300">
                                <span>{{ $lawyer['law_firms'] }}</span> ·
                                <span>{{ $lawyer['address'] }}</span>
                            </div>
                        </div>
                        <span class="lawyer-phone">
                            <a href="tel:{{ $lawyer['phone'] }}">{{ $lawyer['phone'] }}</a>
                        </span>
                    </div>
                @endforeach
                </div>

                @if ($lawyers->hasPages())
                    <div class="paginate">
                        {{ $lawyers->links() }}
                    </div>
                @endif
            </div>
        </div>
    </div>
@stop
